#!/usr/bin/env bash


python3 manage.py makemigrations && python3 manage.py migrate && python3 manage.py collectstatic --noinput
if [ $? == 0 ];then
  uwsgi --ini /server/server/uwsgi.ini
  if [ $? != 0 ];then
    echo "uwsgi_error" >> error.log
  fi
else
  echo "db_error" >> error.log

fi